/////////////////////////////////////////////////////////////////////////////
//
//  Fifteen Puzzle
//  Kolonitsky Developers Alliance (c) 2012
//  All rights received
//
/////////////////////////////////////////////////////////////////////////////

package view.states
{

    import flash.display.Bitmap;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.text.TextField;

    import model.vo.PuzzleVO;

    import org.kolonitsky.alexey.ui.SimpleButton;

    import view.skins.ResultSkin;

    public class ResultState implements IState
    {
        //-----------------------------
        // game
        //-----------------------------

        private var _game:PuzzleVO = null;


        //-------------------------------------------------------------------
        // Methods
        //-------------------------------------------------------------------

        public function ResultState()
        {
            _skin = new ResultSkin();
        }


        //-------------------------------------------------------------------
        //
        //  IState Implementation
        //
        //-------------------------------------------------------------------

        public function displayGame(game:PuzzleVO):void
        {
            _game = game;

            _skin.duration = game.duration / 1000;
            _skin.stepCount = game.stepCount;
        }

        public function activate():void
        {
        }

        private var _skin:ResultSkin;

        public function get skin():Sprite
        {
            return _skin as Sprite;
        }

        private var _numbers:Vector.<Bitmap>;

        public function get numbers():Vector.<Bitmap>
        {
            return _numbers;
        }

        public function set numbers(value:Vector.<Bitmap>):void
        {
            _numbers = value;
        }


        //-------------------------------------------------------------------
        //
        //  Private
        //
        //-------------------------------------------------------------------

    }
}
